import request from '@/utils/request'

const messagePrefix = '/mesCenter'

// 邮件通知列表查询
export function queryMailPage(data) {
  return request({
    url: messagePrefix + '/mail/list',
    method: 'POST',
    data: data
  })
}
// 发送邮件通知
export function newMailNotice(data) {
  return request({
    url: messagePrefix + '/mail/add',
    method: 'POST',
    data: data
  })
}
// 删除邮件通知
export function deleteMailNotice(data) {
  return request({
    url: messagePrefix + '/mail/delete/'+data.id,
    method: 'DELETE'
  })
}

// 阿里短信通知列表查询
export function queryAlismsPage(data) {
  return request({
    url: messagePrefix + '/alisms/list',
    method: 'POST',
    data: data
  })
}
// 发送阿里短信通知
export function newAlismsNotice(data) {
  return request({
    url: messagePrefix + '/alisms/add',
    method: 'POST',
    data: data
  })
}
// 删除阿里短信通知
export function deleteAlismsNotice(data) {
  return request({
    url: messagePrefix + '/alisms/delete/'+data.id,
    method: 'DELETE'
  })
}
